from rest_framework import serializers

from module.models import Module


class ModuleSerializers(serializers.ModelSerializer):
    #查询的序列化器
    class Meta:
        model = Module
        fields = '__all__'
        depth = 1

class ModuleDetailSerializersSave(serializers.ModelSerializer):
    # 查询的序列化器
    class Meta:
        model = Module
        fields = '__all__'